#define _CRT_SECURE_NO_WARNINGS 1
/* strstr example */
#include <stdio.h>
#include <string.h>
int main()
{
	char str[] = "This is a simple string";
	char* pch;
	pch = strstr(str, "simple");
	if (pch != NULL)
	{
		strncpy(pch, "sample", 6);
	}
	puts(str);
	return 0;
}